package com.study.talk.module.netty.message;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class Session {

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("用户昵称")
    private String userName;

    @ApiModelProperty("用户头像地址")
    private String avatar;

    public Session(Integer userId, String userName, String avatar) {
        this.userId = userId;
        this.userName = userName;
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return userId + ":" + userName;
    }
}